public class MathMethod {
    public static void main(String[] args) {

    }

/*        double a = Math.random();
        System.out.println(a);

    }*/

/*        int a = 2;
        int b = 3;
        double c = Math.pow(a,b);//输入整型，会在方法内部转化成浮点型的
        System.out.println(c);

    }*/
/*        double a = 1.2;
        double b = 1.3;
        int c = 1;
        long d = 12222;

        System.out.println(Math.max(a,b));
        System.out.println(Math.max(a,c));
        System.out.println(Math.max(c,d));

        System.out.println(Math.min(a,d));
        System.out.println(Math.min(a,c));
        System.out.println(Math.min(a,d));

    }*/
/*        //四舍五入
        int a = Math.round(1.455f);
        long b = Math.round(1.5000);

        System.out.println(a);
        System.out.println(b);
    }*/

/*
        //向下取整
        double a = Math.floor(2.9999);
        System.out.println(a);
    }
*/

/*        //向上取整
        double a = Math.ceil(2.0000001);
        System.out.println(a);

    }*/
/*        int a = Math.abs(-12);
        double b = Math.abs(-12.32);
        long c = Math.abs(-123333);
        float d = Math.abs(-12.4f);

        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
    }*/
}
